package cn.tqfeiyang.smartadmin.system.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.smartadmin.commons.validation.*;
import cn.tqfeiyang.smartadmin.commons.pagination.*;
import jakarta.validation.constraints.*;
import lombok.Data;

/**
 * 权限查询请求
 *
 * @author tqfeiyang
 * @since 2024-08-22
 */
@Data
public class PermissionQueryDTO extends QueryParams {

    /**
     * 编码
     */
    @Schema(description = "编码")
    @Size(max = 100, message = "编码长度不能超过100字符")
    @QueryColumn(logic = QueryLogic.like)
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @Size(max = 100, message = "名称长度不能超过100字符")
    @QueryColumn(logic = QueryLogic.like)
    private String name;

}